package com.ramms.eater.activity;

import com.ramms.eater.R;
import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;

public class MainActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
    	
        super.onCreate(savedInstanceState);
        
        requestWindowFeature(Window.FEATURE_NO_TITLE);
		
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
        
        setContentView(R.layout.opening);
        
        Handler handler = new Handler();
        
        handler.postDelayed(new Runnable() {

			@Override
			public void run() {
				Intent intent = new Intent(MainActivity.this, HomeActivity.class);
				startActivity(intent);
			}
        	
        }, 5000);
        
    }
    
}